package ooday04;

public  class Chick extends Animal {
    public Chick(int age,String name,String color){
        super(age,name,color);
    }
    public int a;
    protected  int b;
     int c;
    private int d;

    @Override
    public void eat(){
        System.out.println("名字:"+name+"岁数:"+age+"颜色"+color+"小鸡吃饲料");
    }
    void layEggs(){
        System.out.println("名字:"+name+"岁数:"+age+"颜色"+color+"鸡下了几个蛋");
    }
}
